﻿@model  CSF.WebApp.Admin.Areas.Customers.Models.CustomerUserAccountModels
@{
    ViewBag.Title = "Edit";
    ViewBag.SubTitle = "User Account";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{  
    <div id="container">
        <div id="formStyle">
            <fieldset>
                <legend></legend>
                @Html.ValidationSummary(true)
                <p>
                    <label>
                        User Name</label>
                    @Html.TextBoxFor(model => model.UserName)
                    @Html.ValidationMessageFor(model => model.UserName)
                </p>
                <p>
                    <label>
                        First Name</label>
                    @Html.TextBoxFor(model => model.FirstName)
                    @Html.ValidationMessageFor(model => model.FirstName)
                </p>
                <p>
                    <label>
                        Last Name</label>
                    @Html.TextBoxFor(model => model.LastName)
                    @Html.ValidationMessageFor(model => model.LastName)
                </p>
                <p>
                    <label>
                        Email</label>
                    @Html.TextBoxFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </p>
                <p>
                    <label>
                        Password</label>
                    @Html.PasswordFor(model => model.Password)
                    @Html.ValidationMessageFor(model => model.Password)
                </p>
                <p>
                    <label>
                        Pwd Question</label>
                    @Html.TextBoxFor(model => model.PwdQuestion)
                    @Html.ValidationMessageFor(model => model.PwdQuestion)
                </p>
                <p>
                    <label>
                        Pwd Answer</label>
                    @Html.TextBoxFor(model => model.PwdAnswer)
                    @Html.ValidationMessageFor(model => model.PwdAnswer)
                </p>
                <p>
                    <label>
                        Customer</label>
                    @Html.DropDownListFor(m => m.CustomerId, ViewData["CustomerList"] as IEnumerable<SelectListItem>, "--please select--", new { @style = "width:210px" })
                    @Html.ValidationMessageFor(model => model.CustomerId)
                </p>
               
                <p>
                    <label>
                        Comment</label>
                    @Html.TextAreaFor(model => model.Comment)
                    @Html.ValidationMessageFor(model => model.Comment)
                </p>
                <p>
                    @Html.ActionLink("Back to List", "Index")
                </p>
            </fieldset>
            <fieldset>
                <legend></legend>
                <p>
                    <label>
                        Role List</label>
                </p>
                <div style="width: 260px; height: 400px; border: solid 1px #EAEAEA; overflow: scroll;
                    background-color: #E9F1F8">
                    @Html.Action("UserAccountRoleControl")
                </div>
            </fieldset>
            <p class="submit">
                <button type="submit">
                    Save</button></p>
        </div>
    </div>
  
}
